from django.db import models

# Create your models here.
from django.db import models


class DeviceInfo(models.Model):
    device_name = models.CharField(verbose_name="设备名称",default="设备", max_length=20)
    device_id = models.CharField(verbose_name="设备编号", default="01234567890123456789", max_length=20)
    device_model = models.CharField(verbose_name="设备型号", default="01234567890123456789", max_length=20)
    device_addr = models.CharField(verbose_name="设备地址",default="上海市浦东新区", max_length=20)
    created_time = models.DateTimeField(verbose_name="创建时间",auto_now_add=True)
    updated_time = models.DateTimeField(verbose_name="更新时间",auto_now=True)

    def __str__(self):
        return self.device_name
